 package com.cxl.pattern.iterator;
 
 import java.io.PrintStream;
 
 public class IteratorClient
 {
   public static void main(String[] args)
   {
     BookShelf bookShelf = new BookShelf(4);
     bookShelf.appendBook(new Book("爱因斯坦"));
     bookShelf.appendBook(new Book("霍金"));
     bookShelf.appendBook(new Book("牛顿"));
     bookShelf.appendBook(new Book("高斯"));
 
     Iterator it = bookShelf.iterator();
     while (it.hasNext()) {
       Book book = (Book)it.next();
       System.out.println(book.getName());
     }
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.pattern.iterator.IteratorClient
 * JD-Core Version:    0.6.1
 */